package com.tem.content.service;

import com.tem.content.entity.CmsType;
import com.api.manage.pojo.content.CmsTypeBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 * @author 陈辉
 * @since 2023-11-07
 */
public interface ICmsTypeService extends IService<CmsType> {
    /**
     * 获取树结构
     * @param list
     * @return
     */
    public List<CmsTypeBean> getTree(List<CmsTypeBean> list);

    /**
     * 根据企业/分公司id获取树结构
     * @param sysBranchOfficeId
     * @return
     */
    public List<CmsTypeBean> getTree(Long sysBranchOfficeId);
}
